package cn.lazyturtle.bugpush.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * <p>
 * DingDingUserInfoDto :
 * </p>
 *
 * @author cwh
 * @since 2021-11-03
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class DingDingUserInfoDto {
    private Boolean active;
    private Boolean admin;
    private String avatar;
    private Boolean boss;
    private List<Integer> deptIdList;
    private List<DeptOrderListVo> deptOrderList;
    private Boolean exclusiveAccount;
    private Boolean hideMobile;
    private List<LeaderInDeptVo> leaderInDept;
    private String mobile;
    private String name;
    private Boolean realAuthed;
    private List<RoleListVo> roleList;
    private Boolean senior;
    private String stateCode;
    private String unionid;
    private String userid;

    @NoArgsConstructor
    @Data
    public static class DeptOrderListVo {
        private Integer deptId;
        private Long order;
    }

    @NoArgsConstructor
    @Data
    public static class LeaderInDeptVo {
        private Integer deptId;
        private Boolean leader;
    }

    @NoArgsConstructor
    @Data
    public static class RoleListVo {
        private String groupName;
        private Long id;
        private String name;
    }
}
